-
Notifications
You must be signed in to change notification settings - Fork 216
Generic cleanup Metrics and Losses #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Sync with master tensorflow on upstream
Merge main branch to local branch
Update after losses merge
Fix Javadoc errors (tensorflow#152)
pull type def
Fix JavaDoc, modify one line code block to include braces.
…nly live within a single instance of a Metric.
…e same type as the return or internal variables,
…on when static shapes cannot boradcast.
change hasValidNonscalarShape to canBroadcastNonscalarShapes change hasValidNonscalarShape to canBroadcastNonscalarShapes
move the dynamic shapes and rank down to the dynamic section so they are created needlessly when static Fix if statement to check for unknown size and unknown dimensions
renamed WeightBroadcastTest to AssertBroadcastableTest and added BroadcastWeightsTest
…e same type as the return or internal variables,
…on when static shapes cannot boradcast.
change hasValidNonscalarShape to canBroadcastNonscalarShapes change hasValidNonscalarShape to canBroadcastNonscalarShapes
move the dynamic shapes and rank down to the dynamic section so they are created needlessly when static Fix if statement to check for unknown size and unknown dimensions
renamed WeightBroadcastTest to AssertBroadcastableTest and added BroadcastWeightsTest
* Successfully remove extra type params, but it broke javadoc generation Signed-off-by: Ryan Nett <[email protected]> * Generate covariant types Signed-off-by: Ryan Nett <[email protected]> * Do generation Signed-off-by: Ryan Nett <[email protected]> * Update help text. Signed-off-by: Ryan Nett <[email protected]> * Fixes Signed-off-by: Ryan Nett <[email protected]>
….sparse.sparseToDense with the output of tf.sparse.denseToDenseSetOperation
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@karllessard @Craigacp @rnett Could one of you clue me in what went wrong here. I rebased the project to the latest |
Only time I've seen that happen is when I didn't update my local Can you cherry pick the commits you want to a new branch? That's how I've handled it. |
I found this article which sort of explains how to do it. Seems overly complicated. |
I second Ryan's suggestion of There are other ways to fix it, but it depends on what the exact state of your git repo is. |
I had I pulled yesterday's merge to my Based on recreating |
A force push will fix it, but it'll require a bit of a renaming dance with the branches (i.e. cherry-pick to new branch, delete old branch, rename new branch to old branch, force push). It's up to you whichever you find easiest. |
Rebuilt the branch to exclude commits already included in |
This PR effects both
losses
andmetrics
.This PR cleans up generic parameters to cut down on the number of unique parameters to at most 1 where possible.
For example:
public abstract class Metric<U extends TNumber, T extends TNumber> {
becomes
public abstract class Metric<T extends TNumber> {
and
Changes to: